﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="ViewProfile.aspx.vb" Inherits="TWIN_test.ViewProfile" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Instructor- Profile</title>
</head>
<body background="../../Images/Training-Instructor-Background.gif">
    <form id="form1" runat="server">
    <center><div>
            Instructor Profile<br />
             


             <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" 
                DataKeyNames="USERNAME" DataSourceID="SqlDataSource1" Height="50px" 
                Width="125px">
                 <Fields>
                     <asp:BoundField DataField="USERNAME" HeaderText="USERNAME" ReadOnly="True" 
                         SortExpression="USERNAME" />
                     <asp:BoundField DataField="STREETADDRESS" HeaderText="STREETADDRESS" 
                         SortExpression="STREETADDRESS" />
                     <asp:BoundField DataField="CITY" HeaderText="CITY" SortExpression="CITY" />
                     <asp:BoundField DataField="STATE" HeaderText="STATE" SortExpression="STATE" />
                     <asp:BoundField DataField="ZIPCODE" HeaderText="ZIPCODE" 
                         SortExpression="ZIPCODE" />
                     <asp:BoundField DataField="FIRSTNAME" HeaderText="FIRSTNAME" 
                         SortExpression="FIRSTNAME" />
                     <asp:BoundField DataField="LASTNAME" HeaderText="LASTNAME" 
                         SortExpression="LASTNAME" />
                 </Fields>
            </asp:DetailsView>
             


             <br />
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:ConnectionString2 %>" 
                ProviderName="<%$ ConnectionStrings:ConnectionString2.ProviderName %>" 
                SelectCommand="SELECT * FROM &quot;INFO&quot; WHERE (&quot;USERNAME&quot; = :USERNAME)">
                <SelectParameters>
                    <asp:Parameter Name="USERNAME" />
                </SelectParameters>
            </asp:SqlDataSource>
            <br />
             <asp:Button id="editButton" runat="server" text="Edit Profile" /> 
             <asp:Button ID="homeButton" runat="server" Text="Home" />
            <asp:Button ID="backButton" runat="server" Text="Back" />
            
</div>
    </center>
    </form>
</body>
</html>
